# 计算1000000以内所有偶数的和

if __name__ == "__main__":
    begin = 0
    count = 0
    while begin <= 1000000:
        if begin % 2 == 0:
            count += begin
        begin += 2
    print("1000000以内所有偶数的和为:%d", count)